<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/echarts.js"></script>
</head>
<body>
    <div id="main" style="width:600px;height:400px;"></div>
    <script>
        var idEchs = document.getElementById("main");
        var ech = echarts.init(idEchs);
        var options = {
            title:{
                text: 'HelloWorld',
                textStyle:{
                    color: 'red',
                },
                subtext: '副标题',
                subtextStyle:{
                    color: 'skyblue',
                },
                left: 100,
                textAlign: 'center'

            }
        };
        ech.setOption(options);
    </script>
</body>
</html>